﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using LapvBussiness;

namespace Lapv
{
    public partial class nampv : System.Web.UI.Page
    {
        public string domainStyle = ConfigLapv.Instance.DomainStyle;
        public string domain =ConfigLapv.Instance.DomainAdmin;
        protected void Page_Load(object sender, EventArgs e)
        {
            bindddlPaged();
        }





        public void pager_Command(object sender, CommandEventArgs e)
        {
            int currnetPageIndx = Convert.ToInt32(e.CommandArgument);
            pager1.CurrentIndex = currnetPageIndx;

        }
        protected void ddlPaged_SelectedIndexChanged(object sender, EventArgs e)
        {
            pager1.PageSize = Convert.ToInt32(ddlPaged.SelectedValue);

        }
        void bindddlPaged()
        {
            ddlPaged.Items.Insert(0, new ListItem("10", "10"));
            ddlPaged.Items.Insert(1, new ListItem("15", "15"));
            ddlPaged.Items.Insert(2, new ListItem("20", "20"));
            ddlPaged.Items.Insert(3, new ListItem("30", "30"));
            ddlPaged.Items.Insert(4, new ListItem("50", "50"));
            pager1.PageSize = 50;
            ddlPaged.SelectedValue = "50";
        }
    }
}
